package dormatory;

import java.io.*;

class writeAFile {
	 public static void main (String[] args) {
		 try {
			 FileWriter writer = new FileWriter("Fool.txt");
			 writer.write("hello fool!");
			 writer.close();	 
	 } catch(IOException ex) {
		 ex.printStackTrace();
	 }
	 }
}
